_is_debug = False
_my_config = None


def set_debug(d: bool):
    global _is_debug
    _is_debug = d


def is_debug() -> bool:
    return _is_debug


def _set_config(c):
    global _my_config
    _my_config = c


def _get_config():
    return _my_config


def _have_config() -> bool:
    return _my_config is not None
